<template>
<div>
  <van-button @click="get_yonghu">用户登录</van-button>
  <van-button @click="get_guanli">管理员登录</van-button>
</div>
</template>

<script>
export default {
name: "get_role",
  data(){
  return{

  }
  },
  methods:{
    get_yonghu(){
      localStorage.setItem('userid',1)
      localStorage.setItem('roleid',1)

    },
    get_guanli(){
      localStorage.setItem('userid',2)
      localStorage.setItem('roleid',2)
    },
  },
  mounted() {

  }
}
</script>

<style scoped>

</style>
